package com.cn.why.film.filmindex.util;

/**
 * 返回值枚举类
 */
public enum ResultEnum {
    SUCCESS(200,"请求成功！"),
    ERROR(999,"请求失败"),
    UNLOGIN(100,"未登录");

    private int code;
    private String message;

    ResultEnum(int code,String message){
        this.code=code;
        this.message=message;
    }

    public int getCode(){
        return code;
    }

    public String getMessage(){
        return message;
    }
}
